package com.example.kaogong.sys.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @description: 试卷传输对象
 * @author: 徐文升
 * @create: 2022-03-30 22:05
 **/

@Data
@EqualsAndHashCode
@ApiModel(value = "PaperDto", description = "试卷传输对象")
public class PaperDto {

    @NotBlank(message = "试卷名称不能为空")
    @ApiModelProperty(value = "试卷名称", required = true)
    private String paperName;

    @NotNull(message = "试卷类型不能为空")
    @ApiModelProperty(value = "试卷类型(1-客观题{选择判断}，2-主观题{填空论述})", required = true)
    private Integer paperType;

    @NotNull(message = "试卷状态不能为空")
    @ApiModelProperty(value = "试卷状态（1-草稿，2-发布）", required = true)
    private Integer paperStatus;

    @NotNull(message = "作答时长不能为空")
    @ApiModelProperty(value = "作答时长(min)", required = true)
    private Integer testTime;

    @ApiModelProperty(value = "试卷题目编号集合")
    List<PaperQuestionDto> paperQuestionDtoList;
}
